//*******************************************************************
//  GasMileage.java   Java Foundations
//
//  Demonstrates the ues of the Scanner class to read number data.
//*******************************************************************
import java.util.Scanner;

public class GasMileage
{
   //-------------------------------------------------------------
   //  Calulates fuel efficiency based on values entered by the
   //  user.
   //-------------------------------------------------------------
   public static void main (String[] args)
   {
      int miles;
      double gallons, mpg;
      
      Scanner scan = new Scanner (System.in);

      System.out.print ("Enter the number of miles: ");
      miles = scan.nextInt( );

      System.out.print ("Enter the gallons of fuel used: ");
      gallons = scan.nextDouble( );

      mpg = miles / gallons;

      System.out.println ("Miles Per Gallon: " + mpg);
   }
}
